﻿using Microsoft.AspNetCore.Mvc;
using Model;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace IHodelBll
{
    public interface IGuestroomorderBll
    {
        /// <summary>
        /// 客房
        /// </summary>
        /// <returns></returns>
        Task<ActionResult<IEnumerable<Guestroomorder>>> GetOrder(string user);

        /// <summary>
        /// 获取客房类型
        /// </summary>
        /// <returns></returns>
        Task<ActionResult<IEnumerable<Guestroomtype>>> GetOrderoomType();

        /// <summary>
        /// 订单详情
        /// </summary>
        /// <returns></returns>
        ActionResult<Guestroomorder> DataSingle(int oid);

        /// <summary>
        /// 修改
        /// </summary>
        /// <returns></returns>
        Task<ActionResult<int>> UpdateOrder(Guestroomorder guestroomorder);

        /// <summary>
        /// 订单删除
        /// </summary>
        /// <returns></returns>
        Task<ActionResult<int>> DeleteOrder(int oid);

        /// <summary>
        /// 新增入住订单
        /// </summary>
        /// <returns></returns>
        Task<ActionResult<int>> AddRoomOrder(Guestroomorder guestroomorder);
    }
}
